<?php
$lang_tables[]='prompt.php';
define('LANG_FILE','aufnahme.php');
# Resolve the local user based on the origin of the script
if($_SESSION['sess_user_origin']=='admission') {
	$breakfile=$root_path.'modules/interconsulta/interconsulta.php'.URL_APPEND.'&encounter_nr='.$_SESSION['sess_en'];
	$local_user='aufnahme_user';
}elseif($_SESSION['sess_user_origin']=='registration'){
	$breakfile=$root_path.'modules/interconsulta/interconsulta.php'.URL_APPEND.'&pid='.$_SESSION['sess_pid'];
	$local_user='aufnahme_user';
}else{
	$breakfile='interconsulta_pass.php';
	$local_user='aufnahme_user';
}

require_once($root_path.'include/inc_front_chain_lang.php');
require_once($root_path.'include/inc_date_format_functions.php');
require_once($root_path.'include/care_api_classes/class_person.php');

$admissionfile='aufnahme_start.php'.URL_APPEND;

if((!isset($pid)||!$pid)&&$_SESSION['sess_pid']) $pid=$_SESSION['sess_pid'];
	elseif($pid) $_SESSION['sess_pid']=$pid;

?>
